***********************************************************************************
***	Replication file for:                                                     	***
*** Braun, S. T. and Stuhler, J. (2024). The Economic Consequences of 			***
***	Being Widowed by War: A Life-Cycle Perspective.	     						***
***																				***
***	Journal of Public Economics                                                 ***
***   							                                                ***
*** Script:		1-ghs-preparation.do							   			 	***	
*** Purpose:	data preparation, GHS-1 and GHS-2, calls other scripts			***
***																				***
*** Tables:		---																***
***	Figures:	---																***
***********************************************************************************

******************************************************
*** Preparation 
******************************************************

**** GHS-1 (birth cohorts 1929-31, 1939-41, 1949-51)

*** Step 1--Generate Life Cycle Data 
do "$widowsghs/scripts/preparation/_1-ghs-1-prep-life-cycle.do" 

*** Step 2--Generate and Prepare Cross-Sectional and Intergenerational Data
do "$widowsghs/scripts/preparation/_2a-ghs-1-prep-cross-section-p1.do"
do "$widowsghs/scripts/preparation/_2b-ghs-1-prep-cross-section-p2.do"

*** Step 3--Data on absence/death parents
do "$widowsghs/scripts/preparation/_3-ghs-1-prep-death-parents.do"


**** GHS-2 (birth cohort 1919-21)

*** Step 1--Generate Life Cycle Data for A and TA survey
do "$widowsghs/scripts/preparation/_10a-ghs-2-prep-life-cycle-A.do"
do "$widowsghs/scripts/preparation/_10b-ghs-2-prep-life-cycle-TA.do"  
do "$widowsghs/scripts/preparation/_10c-ghs-2-prep-life-cycle-ATA.do"  

*** Step 2--Generate and Prepare Cross-Sectional and Intergenerational Data
do "$widowsghs/scripts/preparation/_11a-ghs-2-prep-cross-section-A.do"
do "$widowsghs/scripts/preparation/_11b-ghs-2-prep-cross-section-TA.do"
do "$widowsghs/scripts/preparation/_11c-ghs-2-prep-cross-section-ATA.do"


*** Combine data
do "$widowsghs/scripts/preparation/_20-ghs-1-2-prep.do"


*** EOF






